package com.hk.demo.player;

import android.os.Bundle;

import com.zhoug.common.utils.ToastUtils;

import androidx.annotation.LayoutRes;
import androidx.appcompat.app.AppCompatActivity;

public abstract class MyBaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayoutResId());
        findViews();
        onCreate1(savedInstanceState);
    }

    protected abstract @LayoutRes int getLayoutResId();

    protected abstract void findViews();

    protected abstract void onCreate1(Bundle savedInstanceState);


    protected void toastShort(Object msg){
        ToastUtils.toastShort(msg);
    }

}
